// 引入 add 模块
import {add} from "./add/add"

console.log(add(1,2));

// 引入 axios 第三方模块
import axios from "axios"

document.querySelector('button').addEventListener('click',function(){
  axios.get('http://123.57.109.30:3006/api/getbooks').then(res => console.log(res))
})

import "./css/index.css"

import "./less/index.less"

import imgObj from "./assets/images/logo_small.png"
const img = document.createElement('img')
img.src = imgObj
document.body.appendChild(img)

import './assets/fonts/iconfont.css'
const i = document.createElement('i')
i.className = 'iconfont icon-qq'
document.body.appendChild(i)


const fn = () => {
  console.log('我是fn');
}

console.log(fn);

